package net.zjitc.springboot_demo.controller;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class helloController {
    @Value("www.zjitc.net")
    private String zjitcUrl;

    @GetMapping("hello")
    public String hello() {
        System.out.println("url:"+zjitcUrl);
        return "hello,Spring Boot Demo";
    }
}
